package com.wjh.mirna.service.impl;

import com.wjh.mirna.dao.MirnaDao;
import com.wjh.mirna.model.Mirna;
import com.wjh.mirna.service.MirnaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MirnaServiceImpl implements MirnaService {
    @Autowired
    MirnaDao mirnaDao;
    @Override
    public void insertMirnaList(List<Mirna> mirnaList) {
        mirnaDao.insertMirnaList(mirnaList);
    }

    @Override
    public List<Mirna> selectMirna() {
        List<Mirna> mirnas = mirnaDao.selectMirna();
        return mirnas;
    }

    @Override
    public Mirna selectByMname(String mname) {
        Mirna mirna = mirnaDao.selectByMname(mname);
        return mirna;
    }
}
